package com.itheima.core.service;

import com.itheima.common.utils.Page;
import com.itheima.core.po.Customer;

/**
 *	@author zangye03
 *	date Jul 17, 20214:41:15 PM
 *	Description	 
 *	
 */

public interface CustomerService {
	
	/**
	 * 查询客户列表
	 * @param page
	 * @param row
	 * @param custName
	 * @param custSource
	 * @param custIndustry
	 * @param custLevel
	 * @return
	 */
	public Page<Customer> findCustomerList(Integer page, Integer row,
			String custName, String custSource,
			String custIndustry, String custLevel);

	/**
	 * 创建客户
	 * @param customer
	 * @return
	 */
	public int createCustomer(Customer customer);

	/**
	 * 通过id查询客户
	 * @param id
	 * @return
	 */
	public Customer getCustomerById(Integer id);

	/**
	 * 更新客户
	 * @param customer
	 * @return
	 */
	public int updateCustomer(Customer customer);

	/**
	 * 删除客户
	 * @param id
	 * @return
	 */
	public int deleteCustomer(Integer id);
	
	

}
